package com.thoughtful.remoting.transport;

import com.thoughtful.remoting.dto.RpcRequest;
import com.thougtful.extension.SPI;

/**
 * @author yushun
 * @createTime 2022/10/18 - 10:17
 **/
@SPI
public interface RpcRequestTransport {

    /**
     * 发送请求到服务器, 并获取结果
     * @param rpcRequest    请求体
     * @return              响应体
     */
    Object sendRpcRequest(RpcRequest rpcRequest);

}
